<!DOCTYPE html>
<html>
<head>
    <title>仓库</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div>

    </div>
    <div v-show="showList">
        <div class="grid-btn">
            <!--<i-row>
                <i-col span="2">
                    <span>库房名称</span>
                </i-col>
                <i-col span="4">
                    <i-input placeholder="Enter something..."  />
                </i-col>
                <i-col span="2">
                    <span>库房编码</span>
                </i-col>
                <i-col span="4">
                    <i-input  placeholder="Enter something..."  />
                </i-col>
                <i-col span="12">
                    <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;查询</a>
                    <#if shiro.hasPermission("basics:bwarehouse:save")>
                    <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
                    </#if>
                    <#if shiro.hasPermission("basics:bwarehouse:info")>
                    <a class="btn btn-primary" @click="detail"><i class="fa fa-plus"></i>&nbsp;查看</a>
                    </#if>
                    <#if shiro.hasPermission("basics:bwarehouse:update")>
                    <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
                    </#if>
                    <#if shiro.hasPermission("basics:bwarehouse:delete")>
                    <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
                     </#if>
             </i-col>
            </i-row>-->
            <div class="layui-row">
                <div class="layui-col-xs2">
                    <div class="layui-col-xs4 prop">
                        <span>仓房类型名称</span>
                    </div>
                    <div class="layui-col-xs8 select-content">
                        <i-input v-model="search.antennaTypeName"  />
                    </div>
                </div>


                <div class="layui-col-xs5">
                    <a class="btn btn-primary" @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>
                    <a class="btn btn-primary" @click="reset"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-xs12">
                    <#if shiro.hasPermission("basics:bwarehousetype:save")>
                         <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
                    </#if>
                    <#if shiro.hasPermission("basics:bwarehousetype:info")>
                        <a class="btn btn-primary" @click="detail"><i class="fa fa-eye"></i>&nbsp;查看</a>
                    </#if>
                     <#if shiro.hasPermission("basics:bwarehousetype:update")>
                        <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
                    </#if>
                    <#if shiro.hasPermission("basics:bwarehousetype:delete")>
                        <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
                    </#if>
                         <!--<a class="btn btn-primary" @click="print"><i class="fa fa-trash-o"></i>&nbsp;打印</a>-->
                </div>
            </div>
        </div>
        <table id="jqGrid" ></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <!--<form class="form-horizontal" id="frmAdd">
                    <div class="form-group">
                        <div class="col-sm-2 control-label">所属部门<span style="color: red">*</span></div>
                        <div class="col-sm-10">
                            <Cascader :data="list" v-if="title!='详情'" change-on-select  clearable="false"   v-model="bWarehouse.departmentId"></Cascader>
                            <Cascader :data="list" v-if="title=='详情'" change-on-select  disabled  v-model="bWarehouse.departmentId"></Cascader>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">仓房名称<span style="color: red">*</span></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control from-name" v-model="bWarehouse.antennaName" placeholder="仓房名称"   />
                        </div>
                    </div>
					<div class="form-group" v-if="title!='新增'">
                        <div class="col-sm-2 control-label">仓房编号</div>
                        <div class="col-sm-10">
                            <input type="text" id="unitCode"  class="form-control" readonly v-model="bWarehouse.unitCode" placeholder="仓房编号"/>
                        </div>
                    </div>
					<div class="form-group"  v-if="title!='新增'">
                        <div class="col-sm-2 control-label">条形码</div>
                        <div class="col-sm-10">
                            <input type="text"  id="barCode"  class="form-control" readonly v-model="bWarehouse.barCode" placeholder="条形码"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control from-name" v-model="bWarehouse.remark" placeholder="备注"/>
                        </div>
                    </div>
					
			 <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" v-if="title!='详情'" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
-->
        <i-form  class="form-horizontal"  ref= 'bWarehouseType' :model="bWarehouseType"  :rules='ruleValidate' :label-width="100">
            <form-item label="仓房名称" prop='antennaTypeName' >
                <i-input  v-model="bWarehouseType.antennaTypeName" :readonly="isShow"  placeholder="请输入仓房类型名称"></i-input>
            </form-item>
            <form-item label="是否需要检测" prop='isOverhaul' >
                <i-switch :disabled="isShow" @on-change="changeUsed"  v-model="isOverhaul" ></i-switch>
            </form-item>
            <form-item label="备注" prop="remark">
                <i-input v-model="bWarehouseType.remark" :readonly="isShow"  type="textarea" v-autosize="{minRows: 2,maxRows: 5}"></i-input>
            </form-item>
            <form-item >
                <i-button type="primary" v-if="title!='详情'" @click="saveOrUpdate('bWarehouseType')"  >确定</i-button>
                <i-button style="margin-left: 8px" @click="reload">返回</i-button>
            </form-item>

        </i-form>

    </div>
   <!-- <div  v-show="false">&lt;!&ndash;v-show="false"&ndash;&gt;
        <div id="print">
            <table>
                <tr>
                    <th colspan="2">
                        <div><svg id="barcode1"></svg></div>
                    </th>

                </tr>
                <tr>
                    <th>
                        <div>
                           <span> 仓库名称：</span>
                        </div>
                    </th>
                    <td>
                        <div>
                            <p id="antennaName"></p>
                        </div>
                    </td>
                </tr>
                <tr>

                    <th>
                        <div>
                            <span> 仓库编码：</span>
                        </div>
                    </th>
                    <td>
                        <div>
                            <p id="unitCode"> </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <th>
                        <div>
                            <span> 所属部门：</span>
                        </div>
                    </th>
                    <td>
                        <div>
                            <p id="departmentName"></p>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>-->
</div>

<script src="${request.contextPath}/statics/js/modules/basics/bwarehousetype.js?_${.now?long}"></script>
</body>
<style>
    .prop{
        padding: 3%;
    }
    .select-content{
        padding: 1%;
    }
    .demo-spin-icon-load{
        animation: ani-demo-spin 1s linear infinite;
    }
</style>
</html>